<!DOCTYPE html>
<html>

<head>
	<meta charset="utf-8">
	<title></title>
</head>

<body>
</body>
<script>
	function LunTai(houDu) {
		this.houDu = houDu;
	}

	LunTai.prototype = {
		constructor: LunTai,
		LunTaiinit: function () {
			console.log('我是' + this.houDu + "的轮胎");
		}
	}

	function LunGu(ciCun) {
		this.ciCun = ciCun;
	}

	LunGu.prototype = {
		constructor: LunGu,
		LunGuinit: function () {
			console.log('我是' + this.ciCun + "宽的轮毂");
		}
	}

	function CheLun(houDu, ciCun) {
		this.houDu = houDu;
		this.ciCun = ciCun;
	}

	CheLun.prototype = new LunTai();
	CheLun.prototype = new LunGu();

	var mazidaChelun = new CheLun("2cm","18寸");
	mazidaChelun.LunTaiinit();
	mazidaChelun.LunGuinit();
</script>

</html>
